//前端公共业务逻辑组件接口
import http from "@/utils/http";

export function sendMessageWithMobileOrEmail(token,identify){
    let params ={
      token: token,
      identify: identify
    };
    return http.get('https://www.simoniu.com/commons/msg/validatecode',params)
}

export async function checkMessageIsRight(token,code){
    let params = {
        token: token,
        code : code
    }
    return http.get("https://www.simoniu.com/commons/msg/auth",params);
}